package com.zbkj.crmeb.store.dao;

import com.zbkj.crmeb.store.model.StoreOrder;
import com.zbkj.crmeb.store.model.StoreOrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.crmeb.store.request.StoreOrderInfoActivityRequest;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 订单购物详情表 Mapper 接口
 * </p>
 *
 * @author Mr.Zhang
 * @since 2020-05-28
 */
public interface StoreOrderInfoDao extends BaseMapper<StoreOrderInfo> {

    public List<StoreOrderInfo> getStoreOrderInfoList(Integer productId);

    List<StoreOrderInfo> getStoreOrderInfoListUnPaid(@Param("productIdList") List<Integer> productIdList, @Param("activityIds") List<Integer> activityIds);

    List<StoreOrderInfo> getUserOrderList(StoreOrder storeOrderPram);

    List<StoreOrderInfo> getOrderCount(StoreOrder storeOrderPram);

    Integer getNumByActivityId(StoreOrderInfoActivityRequest request);

    List<StoreOrderInfo> getUnionAllOrderInfo(StoreOrder storeOrderPram);

    List<StoreOrderInfo> getVerifyOrderInfo(StoreOrder storeOrderPram);

}
